<?php
class PeopleVademecum extends AppModel {
	var $name = 'PeopleVademecum';
	var $validate = array(
		'person_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'vademecum_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'typeindicacionmedicamento_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'user_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Person' => array(
			'className' => 'Person',
			'foreignKey' => 'person_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Vademecum' => array(
			'className' => 'Vademecum',
			'foreignKey' => 'vademecum_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Typeindicacionmedicamento' => array(
			'className' => 'Typeindicacionmedicamento',
			'foreignKey' => 'typeindicacionmedicamento_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Client' => array(
			'className' => 'Client',
			'foreignKey' => 'client_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Staterecord' => array(
			'className' => 'Staterecord',
			'foreignKey' => 'staterecord_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Unidad' => array(
			'className' => 'Unidad',
			'foreignKey' => 'unidad_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Via' => array(
			'className' => 'Via',
			'foreignKey' => 'via_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Frecuencia' => array(
			'className' => 'Frecuencia',
			'foreignKey' => 'frecuencia_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>